<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>通知</title>
    <div th:replace="commonPage::comLink"></div>
</head>
<body>
<div th:replace="commonPage::#loader"></div>
<div th:replace="commonPage::comIndexHeaderMune"></div>


<!--     通知表单    -->
<section class="contact-area padding-top-140px padding-bottom-120px">
    <div class="container">
        <div class="row">
            <div class="col-lg-7 mx-auto">
                <ul class="nav nav-pills nav-stacked">
                    <li role="presentation" class="active"><a href="#">通 知</a></li>
                    <li role="presentation"><a th:href="@{/userCenter/communicate}">私 信</a></li>
                </ul>
                <div class="user-form">
                    <div th:if="${notices.isEmpty()}">
                        <p> 暂时没有人给你发来消息哦！</p>
                    </div>
                    <div th:each="notice : ${notices}">
                            <span th:class="${notice.notice.hasRead} == 0 ? 'notice-noread':'' "
                                  th:text="${notice.notice.content}"></span>
                        <span class="btn-right"
                              th:text="${#dates.format(notice.notice.gmtCreate,'yyyy-MM-dd HH:mm')}"></span>
                        <br>
                        <a th:href="'/changeRead' +${notice.notice.questionUrl}+'/'+${notice.notice.id}"
                           class="title-notice">
                            <b>
                                [[${notice.notice.title}]]
                            </b>
                        </a>
                        <hr>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--      mybatis plus 分页      -->
    <section class="contact-area padding-top-140px padding-bottom-120px">
        <div class="container">
            <div class="row">
                <div class="col-lg-7 mx-auto">
                    <div class="communicate-form">
                            <hr>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <div th:replace="commonPage::comFooter">
    </div>
    <div th:replace="commonPage::comScript">
    </div>
</body>
</html>